home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / makefile.ami < prev    next >
Encoding:
Makefile  |  1993-12-30  |  5.2 KB  |  164 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools, under UNIX.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.ami' for the exact path names to be used for libraries and
  8. #    binaries. Set the proper C compiler and graphics library flags in
  9. #    makeflag.sas as well.
  10. # 2. Edit the makefiles in all subdirectories. Replace the text between
  11. #    "#-----" with the contents of makeflag.ami. Do the same for this file,
  12. #    and make sure that the MAKE variable points to the correct make program.
  13. # 3. The libgif.a is not provided here. See the documentation on how to get
  14. #    it. Without it poly3d-r cannot be built.
  15. #    The make files are set as if libgif.a IS NOT PROVIDED.
  16. #
  17. #                Gershon Elber, Nov. 1991
  18. #                Kriton Kyrimis, Dec. 1993
  19. #
  20.  
  21. #-----
  22. #
  23. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  24. # is sourced from several directories relative path specification will
  25. # be simple wrong.
  26. #
  27.  
  28. SRC_DIR = Boot:Home/T/Irit
  29. #
  30. # All libraries created will be installed into the LIB_DIR directory.
  31. #
  32. LIB_DIR = $(SRC_DIR)/lib
  33.  
  34. #
  35. # All includes files associated with the installed libraries will be
  36. # installed into the INC_DIR directory.
  37. #
  38. INC_DIR = $(SRC_DIR)/inc
  39.  
  40. #
  41. # All binaries created will be installed into the BIN_DIR directory.
  42. #
  43. BIN_DIR = $(SRC_DIR)/bin
  44.  
  45. #
  46. # Uncomment the correct set of variables to be used or modify it for
  47. # your system.
  48. #
  49. # -D flags:
  50. #
  51. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  52. #
  53. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  54. #    be used.
  55. #
  56. #  Emulation to the following function are available by defining the
  57. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  58. # -DGETCWD - if getcwd is not defined in this system.
  59. # -DSTRSTR - if strstr is not defined in this system.
  60. # -DSTRDUP - if strdup is not defined in this system.
  61. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  62. #
  63. # -DTIMES - if times is defined in your system, otherwise uses time.
  64. #
  65. # -DRAND - if the (s)rand random number generator exists.
  66. # -DRAND48 - ?rand48 random number generators exists.
  67. #    If non of RAND or RAND48 are defined, (s)random is used.
  68. #
  69. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  70. #
  71. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  72. #    varargs.h.
  73. #
  74. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  75. #
  76. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  77. #
  78. # Other, possibly useful defines (for c code development):
  79. #
  80. # -DDEBUG - for some debugging functions in the code (that can be invoked
  81. #        from a debugger).
  82. #
  83.  
  84. #
  85. # Flags for Amiga using gcc
  86. #
  87. CC = gcc
  88. DFLAGS = -Dmain=mymain -DTIMES
  89. CFLAGS = $(DFLAGS) -m68040 -m68881
  90. MORELIBS = $(LIB_DIR)/libamg.a
  91. GRAPDRVS = nuldrvs amidrvs
  92.  
  93. #
  94. # Default rule for compilation.
  95. #
  96. .c.o:
  97.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  98.  
  99. #
  100. # All libraries.
  101. LIBS = -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc #-lgif
  102. #-----
  103.  
  104. MAKE = make
  105.  
  106. #
  107. # Uncomment the following variable to only see the actions taken.
  108. #
  109. # VIEW_ONLY = -n
  110.  
  111. all:     binaries doc init
  112.  
  113. #
  114. # Print info regarding initialization.
  115. #
  116. init:
  117.     @echo ""
  118.     @echo "Before executing the test suite and/or any usage of this"
  119.     @echo "package you will have to issue the following commands:"
  120.     @echo ""
  121.     @echo "path add $(BIN_DIR)"
  122.     @echo "setenv IRIT_PATH $(BIN_DIR)/"
  123.     @echo ""
  124.     @echo "and optionally the following commands:"
  125.     @echo ""
  126.     @echo "setenv IRIT_DISPLAY *"amidrvs -s-*""
  127.     @echo "setenv IRIT_BIN_IPC 1"
  128.     @echo "setenv IRIT_SERVER_PORT Irit"
  129.     @echo ""
  130.     @echo "or similar."
  131.  
  132. binaries:
  133.     @execute makescr.ami amigalib $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  134.     @execute makescr.ami misc_lib $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  135.     @execute makescr.ami cagd_lib $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  136.     @execute makescr.ami prsr_lib $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  137.     @execute makescr.ami geom_lib $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  138.     @execute makescr.ami grapdrvs $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  139.     @execute makescr.ami irit $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  140.     @execute makescr.ami poly3d-h $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  141.     @execute makescr.ami illustrt $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  142.     @execute makescr.ami iritfltr $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  143.     @execute makescr.ami docs $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  144. #    @execute makescr.ami poly3d-r $(MAKE) $(VIEW_ONLY) -f makefile.ami install
  145.  
  146. #
  147. # Make hardcopy documentation.
  148. #
  149. doc:
  150.     @execute makescr.ami docs $(MAKE) $(VIEW_ONLY) -f makefile.ami\
  151.     irit.tex irit.doc
  152.  
  153. clean:
  154.     delete QUIET amigalib/\#?.lib amigalib/\#?.o misc_lib/\#?.lib\
  155. misc_lib/\#?.o cagd_lib/\#?.lib cagd_lib/\#?.o prsr_lib/\#?.lib prsr_lib/\#?.o\
  156. geom_lib/\#?.lib geom_lib/\#?.o grapdrvs/amidrvs grapdrvs/nuldrvs\
  157. grapdrvs/\#?.o irit/irit irit/\#?.o poly3d-h/poly3d-h poly3d-h/\#?.o\
  158. lib/libamg.a lib/libcagd.a lib/libgeom.a lib/libmisc.a lib/libprsr.a
  159.     delete QUIET illustrt/illustrt illustrt/\#?.o iritfltr/irit2ray\
  160. iritfltr/irit2ps iritfltr/irit2xfg iritfltr/irit2nff iritfltr/dat2irit\
  161. iritfltr/dxf2irit iritfltr/irit2dxf iritfltr/irit2scn iritfltr/irit2plg\
  162. iritfltr/skeletn1 iritfltr/\#?.o docs/irit.tex docs/irit.doc docs/irit.hlp\
  163. docs/\#?.o poly3d-r/poly3d-r poly3d-r/\#?.o
  164.